package com.ngu.biz.notepad.controller;


import com.ngu.biz.notepad.service.NguNotepadService;
import com.ngu.util.AjaxResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author HSJ
 * @since 2020-03-01
 */
@RestController
@RequestMapping("/notepads")
public class NguNotepadController {

    @Autowired
    private NguNotepadService nguNotepadService;

    @GetMapping("/selectNotepadsList")
    public AjaxResponse getList(@RequestParam("page") Integer page ,@RequestParam("limit") Integer limit){
       return AjaxResponse.page("查询成功！",nguNotepadService.list(),nguNotepadService.count(),page);
    }


}
